package com.todo.delicacy.application.backend.service;

import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;
import com.todo.delicacy.iface.backend.request.*;
import com.todo.delicacy.iface.backend.response.BaseFoodInfoResp;
import com.todo.delicacy.iface.backend.response.QueryRestaurantInfoByConditionRsp;

/**
 * (FoodInfo)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 00:19:46
 */
public interface FoodInfoBackendService {

    /**
     * 根据id查询美食
     *
     * @param req
     * @return
     */
    BizResponse<BaseFoodInfoResp> queryFoodInfoById(QueryFoodInfoByIdReq req);

    /**
     * 多条件查询美食列表
     *
     * @param req
     * @return
     */
    BizPageResponse<QueryRestaurantInfoByConditionRsp> queryFoodInfoByCondition(QueryFoodInfoByConditionReq req);

    /**
     * 更新美食信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> updateFoodInfo(UpdateFoodInfoReq req);

    /**
     * 新增美食信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> insertFoodInfo(InsertFoodInfoReq req);

    /**
     * 删除美食信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> removeFoodInfoById(RemoveFoodInfoReq req);
}
